<?php


namespace App\Repositories;



class JpushLogRepository extends EloquentRepository
{
	protected $jpushLog;

	public function __construct(\JpushLog $jpushLog)
	{
		$this->jpushLog = $jpushLog;
	}

	public function add_jpush_log($to_id, $type, $state, $extra, $message)
	{
		return $this->jpushLog->create([
			'to_id'     => $to_id,
			'type'      => $type,
			'state'     => $state,
			'extra'     => $extra,
			'message'   => $message,
		]);
	}
}